﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Comments.ascx.cs" Inherits="iShopping.UserControl.Comments" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<link href="../../css/cssComments.css" rel="stylesheet" type="text/css" />
<div id="comments">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="pnlComment" runat="server">               
       <ContentTemplate>     
       <div id="list_comment">
        <div id="title">Ý KIẾN BÌNH LUẬN</div>
    <asp:DataList ID="DataList1" runat="server" Width="100%" RepeatColumns="1"    >
        <HeaderTemplate>          
        </HeaderTemplate>
        <FooterTemplate>            
        </FooterTemplate>
        <ItemTemplate>
            <div id="avatar" style="border-style: 1; border-width: 1px;" align="center">
                <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Avatar") %>' Height="48px" 
                    Width="48px" />
            </div>
            <div id="taikhoan">
            <span>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("TenTaiKhoan") %>'></asp:Label><asp:Label ID="Label4"
                    runat="server" Text=" - "></asp:Label>  <asp:Label ID="Label3" 
                    runat="server" Text='<%# Eval("NgayComment") %>'></asp:Label></span>
            <div id="noidungs">
                <asp:Label ID="Label2" runat="server" Text='<%# Eval("NoiDungComment") %>'></asp:Label></div>
            </div>
         <%--   <div id="noidung">
            </div>--%>
        </ItemTemplate>
    </asp:DataList>   
    <div ID="phantrang">
                <table ID="paging">
                    <tr>
                        <td>
                            <asp:LinkButton ID="lbTruoc" runat="server" onclick="LinkButton1_Click">Trước</asp:LinkButton>
                        </td>
                        <td>
                            <asp:Panel ID="Panel2" runat="server">
                            </asp:Panel>
                        </td>
                        <td>
                            <asp:LinkButton ID="lbSau" runat="server" onclick="LinkButton2_Click">Sau</asp:LinkButton>
                        </td>
                    </tr>
                </table>
                <div>
                </div>
        </div>
    
</div>
<!-- end list comment -->
   <asp:Panel ID="Panel1" runat="server" BorderColor="Black" BorderStyle="Solid" 
        BorderWidth="1px">
        <div id="content_comment">
        <div id="content_box" align="center" >
            <asp:TextBox ID="txtContent" runat="server" BorderStyle="Solid" 
                        TextMode="MultiLine" Height="59px" Width="90%"  ></asp:TextBox>
        <%--     <cc1:textboxwatermarkextender id="TextBoxWatermarkExtender1" runat="server" 
                       targetcontrolid="txtContent" watermarktext="Nội dung bình luận"></cc1:textboxwatermarkextender>--%>
         </div>
         <div id ="btnClick" align="center" >                
            <asp:Button ID="btSend" runat="server" OnClick="btSend_Click" Text="Gửi" 
                 Width="96px" />
              
        </div>
        </div>
    </asp:Panel> 
    <!-- end content comment --> 
        </ContentTemplate>
    </asp:UpdatePanel>

</div>